//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['Dinosaur Jr.','The Loft - GA','Atlanta, GA','Saturday','5/4/2024','11:59 PM','6310369','Dinosaur-Jr--5-4-2024'],['41','The Loft - GA','Atlanta, GA','Sunday','5/5/2024','8:00 PM','6352637','41-5-5-2024'],['Rich Amiri','The Loft - GA','Atlanta, GA','Wednesday','5/8/2024','8:00 PM','6415037','Rich-Amiri-5-8-2024'],['Citizen Soldier','The Loft - GA','Atlanta, GA','Thursday','5/9/2024','7:30 PM','6120701','Citizen-Soldier-5-9-2024'],['Serpentwithfeet','The Loft - GA','Atlanta, GA','Friday','5/10/2024','8:00 PM','6319658','Serpentwithfeet-5-10-2024'],['Aidan Bissett','The Loft - GA','Atlanta, GA','Saturday','5/11/2024','8:00 PM','6238398','Aidan-Bissett-5-11-2024'],['A Night For Dreamers: George Lovett & Ashley Jayy','The Loft - GA','Atlanta, GA','Thursday','5/16/2024','8:00 PM','6410345','A-Night-For-Dreamers--George-Lovett---Ashley-Jayy-5-16-2024'],['Livingston - Artist','The Loft - GA','Atlanta, GA','Friday','5/17/2024','8:00 PM','6290857','Livingston---Artist-5-17-2024'],['Driveways','The Loft - GA','Atlanta, GA','Saturday','5/18/2024','8:00 PM','6288328','Driveways-5-18-2024'],['Autumn!','The Loft - GA','Atlanta, GA','Sunday','5/19/2024','8:00 PM','6264774','Autumn--5-19-2024'],['Sawyer Hill','The Loft - GA','Atlanta, GA','Monday','5/20/2024','8:00 PM','6399794','Sawyer-Hill-5-20-2024'],['Wild Child - Band','The Loft - GA','Atlanta, GA','Tuesday','5/21/2024','8:00 PM','6296180','Wild-Child---Band-5-21-2024'],['He is Legend','The Loft - GA','Atlanta, GA','Friday','6/7/2024','6:00 PM','6332204','He-is-Legend-6-7-2024'],['GSoul','The Loft - GA','Atlanta, GA','Wednesday','6/12/2024','8:00 PM','6371462','GSoul-6-12-2024'],['Aaron West And The Roaring Twenties','The Loft - GA','Atlanta, GA','Thursday','6/20/2024','7:00 PM','6233855','Aaron-West-And-The-Roaring-Twenties-6-20-2024'],['Inayah Lamis','The Loft - GA','Atlanta, GA','Sunday','6/23/2024','8:00 PM','6399325','Inayah-Lamis-6-23-2024'],['D Savage','The Loft - GA','Atlanta, GA','Wednesday','7/3/2024','8:00 PM','6419278','D-Savage-7-3-2024'],['La Santa Cecilia','The Loft - GA','Atlanta, GA','Wednesday','8/14/2024','8:00 PM','6375002','La-Santa-Cecilia-8-14-2024'],['Shawn James','The Loft - GA','Atlanta, GA','Wednesday','9/4/2024','8:00 PM','6412491','Shawn-James-9-4-2024'],['JP Cooper','The Loft - GA','Atlanta, GA','Saturday','9/21/2024','8:00 PM','6399126','JP-Cooper-9-21-2024']],'The Loft Atlanta','http://www.ticketnetwork.com/ticket/The-Loft-Atlanta-events.aspx');